projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e882cc
)
pull-local: Fix race condition
author
Colin Walters
<walters@verbum.org>
Sat, 8 Jun 2013 16:58:44 +0000
(12:58 -0400)
committer
Colin Walters
<walters@verbum.org>
Sat, 8 Jun 2013 16:58:44 +0000
(12:58 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=701861
src/ostree/ot-builtin-pull-local.c
patch
|
blob
|
history
diff --git
a/src/ostree/ot-builtin-pull-local.c
b/src/ostree/ot-builtin-pull-local.c
index 36719eaf6c601f5075725f127d402ebe0b2c4350..98010b866eef8bfaa93eb4097d287fd07f44a69b 100644
(file)
--- a/
src/ostree/ot-builtin-pull-local.c
+++ b/
src/ostree/ot-builtin-pull-local.c
@@
-268,11
+268,11
@@
ostree_builtin_pull_local (int argc, char **argv, GFile *repo_path, GError **err
if (!ostree_repo_prepare_transaction (data->dest_repo, FALSE, cancellable, error))
goto out;
+ data->n_objects_to_check = g_hash_table_size (source_objects);
g_hash_table_iter_init (&hash_iter, source_objects);
while (g_hash_table_iter_next (&hash_iter, &key, &value))
{
GVariant *serialized_key = key;
- data->n_objects_to_check++;
g_thread_pool_push (data->threadpool, g_variant_ref (serialized_key), NULL);
}